<?php

$user_id = $path[3];

if (ctype_digit($user_id)) {
	
	if (isset($_POST)) {
		if ($user_id != $_SESSION['login']['user']['id']) {
			if ($db->delete('cms_users', "id={$user_id} AND site_id={$site['id']}")) {
				$db->delete("cms_users_custom_{$site['id']}", "user_id={$user_id}");
			}
		}
	}
	
}
